{include file="admin/header.tpl" title="header" }

 <div id="content">
 {php} echo display_msg(); {/php}
      <div class="lstable " style="border:none;">
        {if $post.send eq '1'}
        	
            <div class="success"> Password reset link has sent to your email address. Please use the link to reset your password</div>
        	
        
        {else}
        <div class="logintable " align="center">
        <form action="{$baseurl}/admin/forget_password.php" name="forget_password" id="forget_password" method="post" onsubmit="return validate();">
        <input type="hidden" name="action" value="login"  />
        
        
        
          <table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr>
              <th  align="left" valign="middle"><span style="float:left"><strong>Forget Password</strong></span> <!--in to your account or <a href="#">sign up</a> to create one.--></th>
            </tr>
            <tr>
              <td align="center" valign="middle"><label>Email Address:</label><input name="email" id="email" value="{$post.email|stripslashes}" type="text" class="input" /></td>
            </tr>
            <tr>
              <td align="left" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="left" valign="middle"><input name="submit" class="btn" type="submit" value="Submit" /></td>
                    <td align="left" valign="middle"><!--<input type="checkbox" name="checkbox" id="checkbox" />
                      Remember my login on this computer--></td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td align="left" valign="middle" class="l_links"></td>
            </tr>
            <tr>
              <td align="left" valign="middle" class="l_links"></td>
            </tr>
          </table>
          </form>
          </div>
          {/if}
        
      </div>
    </div>

<script>
{literal}

$('#email').focus();

function validate()
{
	if( jQuery.trim($('#email').val()) == '' ) 		
	{
		alert('Please enter email address.');	
		$('#email').focus();
		return false;		
	}		
	else
	if( ! ch_validEmail($('#email').val()) )		
	{
		alert('Please enter valid email address.');	
		$('#email').focus();
		return false;	
	}
	
	return true;
		
}

{/literal}
</script>
         
           
{include file="admin/footer.tpl" title="footer"}